import traceback


def another_function():
    lumberstack()


def lumberstack():
    # traceback.print_stack()
    # print(repr(traceback.extract_stack()))
    print(repr(traceback.format_stack()))


another_function()